import {
    BarChart,
    LineChart,
    MapChart,
    PictorialBarChart,
    PieChart,
    RadarChart,
} from 'echarts/charts'
import {
    AriaComponent,
    DataZoomComponent,
    GridComponent,
    LegendComponent,
    ParallelComponent,
    PolarComponent,
    TitleComponent,
    TooltipComponent,
} from 'echarts/components'
import * as echarts from 'echarts/core'
import { CanvasRenderer } from 'echarts/renderers'

echarts.use([
    LegendComponent,
    TitleComponent,
    TooltipComponent,
    GridComponent,
    PolarComponent,
    AriaComponent,
    ParallelComponent,
    BarChart,
    LineChart,
    PieChart,
    MapChart,
    CanvasRenderer,
    PictorialBarChart,
    RadarChart,
    DataZoomComponent,
])

export default echarts
